cmake_minimum_required(VERSION 3.16.3)

project(slam)

include_directories(${CMAKE_SOURCE_DIR}/include)

set(CMAKE_INSTALL_LIBDIR ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_INSTALL_BINDIR ${CMAKE_BINARY_DIR}/bin)


# set(OpenCV_DIR /usr/lib/x86_64-linux-gnu/cmake/opencv4)

set(OpenCV_DIR /usr/local/lib)
find_package(Glog REQUIRED)
find_package(Gflags REQUIRED)
find_package(OpenCV REQUIRED)
include_directories(${GLOG_INCLUDE_DIRS} ${GFLAGS_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS})

add_subdirectory(tools)
add_subdirectory(src)
